<?php $this->load->view('layout/header');?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <h3 class="page-title">工程部 <small>机器列表</small></h3>
            <?php echo breadcrumb(array('工程部', 'macs/grid'=>'机器列表', '更新检票机')); ?>
        </div>
    </div>
    <?php echo execute_alert_message(); ?>
    <div class="row-fluid">
        <div class="span12">
            <div class="portlet box green">
                <div class="portlet-title">
                    <div class="caption"><i class="icon-plus-sign"></i>更新检票机</div>
                    <div class="tools">
                        <a class="collapse" href="javascript:;"></a>
                        <a class="remove" href="javascript:;"></a>
                    </div>
                </div>
                <div class="portlet-body form">
                    <form class="form-horizontal line-form" action="<?php echo base_url('macs/editPost') ?>" method="post" enctype="multipart/form-data">
                        <div class="control-group">
                            <label class="control-label"><em>* </em>机器编号</label>
                            <div class="controls">
                                <input type="hidden" name="old_mac_id" value="<?php echo $macs->mac_id;?>">
                                <input type="text" name="mac_id" value="<?php echo $macs->mac_id;?>" class="m-wrap span8 number required">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>机器名称</label>
                            <div class="controls">
                                <input type="text" name="mac_name" value="<?php echo $macs->mac_name;?>" class="m-wrap span8 required"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>机器密码</label>
                            <div class="controls">
                                <input type="text" name="mac_pw" value="<?php echo $macs->mac_pw;?>" class="m-wrap span8 required" readonly="readonly"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">机器类型</label>
                            <div class="controls">
                                <input type="text" name="mark" value="<?php echo $macs->mark;?>" class="m-wrap span8 number"/>
                                <span class="help-inline">检票机分成两种类型1.多台检票机同一张票都可刷 2.多台检票机中同一张票只能刷一台[同一个景区的检票机编号 都有一个mark 值，如果两个编号的mark值相同则表示B(2.)类型 ，不同则为A(1.)类型。（mark用1、2、4、8、16的规则表示）] </span>
                            </div>
                        </div>
                        <div class="control-group add-supplieruid-html">
                            <label class="control-label"><em>* </em>检票机账户编号</label>
                            <div class="controls">
                                <input type="text" name="teller_uid" value="<?php echo $macs->teller_uid;?>" class="m-wrap span8 supplieruid number required tooltips" data-original-title="双击可弹框选择供应商；直接输入‘用户名称或编号’可提示" data-trigger="hover">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>景区编号</label>
                            <div class="controls">
                                <input type="text" name="sid" value="<?php echo $macs->sid;?>" class="m-wrap span8 number required"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">SIM卡号</label>
                            <div class="controls">
                                <input type="text" name="sim_num" value="<?php echo $macs->sim_num;?>" class="m-wrap span8 number"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"><em>* </em>机器状态</label>
                            <div class="controls">
                                <select name="isfree">
                                    <option value="N" <?php if ($macs->isfree == 'N') echo 'selected="selected"';?>>正常</option>
                                    <option value="Y" <?php if ($macs->isfree == 'Y') echo 'selected="selected"';?>>冻结</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-actions">
                            <button class="btn green" type="submit"><i class="icon-ok"></i> 保存</button>
                            <a href="<?php echo base_url('macs/grid')?>">
                                <button class="btn" type="button">返回</button>
                            </a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>
<?php $this->load->view('user/addSupplierUid/ajaxGetUser');?>